package com.nullyb.springbootshardingjdbc.service.impl;

import com.nullyb.springbootshardingjdbc.dao.TestMapper;
import com.nullyb.springbootshardingjdbc.entity.TestEntity;
import com.nullyb.springbootshardingjdbc.service.ITest;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class TestImpl implements ITest {

    @Resource
    private TestMapper testMapper;
    @Override
    public List<TestEntity> findAll() {
        return testMapper.findAll();
    }

    @Override
    public List<TestEntity> findByProvCode(Map<String,Object> map) {
        return testMapper.findByProvCode(map);
    }

    @Override
    public int insertTest(TestEntity t) {
        return testMapper.insertTest(t);
    }
}
